#pragma once

#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

#define CONV(code) (struct sockaddr*)(code)
#define Die(code) exit(code)
enum 
{
    SOCK_ERR = 1,
    BIND_ERR,
    LISTEN_ERR,
    USAGE_ERR,
    CONN_ERR,
};
